package com.xinqi.modules.sys.textbook.dto.req;

import com.xinqi.common.base.dto.CommonFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 云课本课堂内容-请求对象-新增
 *
 * @author: linkai
 * @date: 2023/04/25
 */
@Data
@Schema(description = "云课本课堂内容-请求对象-新增")
public class CloudTextbookContentCreateDTO implements Serializable {

    /**
     * 云课本id
     */
    @Schema(description = "云课本id", example = "")
    @NotNull(message = "云课本id不能为空")
    private Long cloudTextbookId;
    /**
     * 页数
     */
    @Schema(description = "页数", example = "")
    @NotNull(message = "页数不能为空")
    private Integer pageNum;
    /**
     * 课本图片
     */
    @Schema(description = "课本图片", example = "")
    private CommonFileDTO file;
    /**
     * 是否关联
     */
    @Schema(description = "是否关联", example = "0")
    private Integer isRef;
    /**
     * 关联ID
     */
    @Schema(description = "关联ID", example = "")
    private Long refId;
    /**
     * 备注
     */
    @Schema(description = "备注", example = "")
    private String remark;
}
